import request from '@/utils/request'

export function getEmployees(params) {
  return request({
    url: '/api/Case/CaseTravel/GetEmployees',
    method: 'get',
    params
  })
}

export function getTravelPage(data) {
  return request({
    url: '/api/Case/CaseTravel/GetTravelPage',
    method: 'post',
    data
  })
}

export function getCaseTravels(params) {
  return request({
    url: '/api/Case/CaseTravel/GetCaseTravels',
    method: 'get',
    params
  })
}

export function addCaseTravel(data) {
  return request({
    url: '/api/Case/CaseTravel/AddCaseTravel',
    method: 'post',
    data
  })
}

export function editCaseTravel(data) {
  return request({
    url: '/api/Case/CaseTravel/EditCaseTravel',
    method: 'post',
    data
  })
}

export function deleteCaseTravel(id) {
  return request({
    url: '/api/Case/CaseTravel/DeleteCaseTravel',
    method: 'get',
    params: {
      id
    }
  })
}